package com.shamar.blog.dao;

import com.shamar.blog.entity.BlogUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BlogUserDao {
    int deleteByPrimaryKey(Integer id);

    int insert(BlogUser record);

    int insertSelective(BlogUser record);

    BlogUser selectByPrimaryKey(Integer id);

    BlogUser selectByBlogUserCondition(@Param("blogUserCondition") BlogUser blogUserCondition,@Param("rowIndex") int rowIndex, @Param("pageSize") int pageSize);

    int updateByPrimaryKeySelective(BlogUser record);

    int updateByPrimaryKey(BlogUser record);
    /**
     * 分页查询用户,可输入的条件有:用户名,用户状态,手机号,邮箱
     */
    List<BlogUser> queryUserList(@Param("BlogUserCondition") BlogUser blogUserCondition,@Param("rowIndex") int rowIndex, @Param("pageSize") int pageSize);
}